package com.hdf.etdemo.image;

import com.hdf.easytools.base.EasyToolsActivity;
import com.hdf.etdemo.R;
import com.hdf.etdemo.R.layout;
import com.hdf.etdemo.uitl.SysUtils;
import com.nostra13.universalimageloader.core.ImageLoader;

import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;

public class GaoSiActivity extends EasyToolsActivity {
	private ImageView img1, img2;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_gao_si);
		/** 设置标题显示 */
		this.TitleVisib(0, 1, 1, 0, 0);
		/** 绑定标题点击事件 */
		this.TitleClick(0, 1, 0, 0, 0);
		/** 设置标题样式ʽ */
		this.TitleStyle(null, R.drawable.et_back, "高斯模糊", null, 0);
		
		
		
		img1 = (ImageView) findViewById(R.id.img1);
		img2 = (ImageView) findViewById(R.id.img2);

		String url = "http://chuantu.biz/t2/24/1453120455x-1376440134.jpg";
		ImageLoader.getInstance().displayImage(url, img1);
		Bitmap bitmap = ImageLoader.getInstance().loadImageSync(url);
		img2.setImageBitmap(SysUtils.fastblur(GaoSiActivity.this, bitmap, 20));

	}

	 @Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			switch (v.getId()) {
			case R.id.left_img:
				finish();
				break;

			default:
				break;
			}
		}

}
